"""Robot URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.urls import path
from meituan import api as mt_api
from elong import api as el_api
from mtoversea import api as mto_api

urlpatterns = [
    path('api/mt/gethotellist', mt_api.spider_hotel_list),
    path('api/mt/gethotelroomlist', mt_api.spider_hotel_room_list),
    path('api/mt/getsaleprice', mt_api.spider_get_price_ratio),
    path('api/mt/pushprice', mt_api.spider_submit_update_price),
    path('api/mt/pushroomstatus', mt_api.spider_submit_update_inventory),
    path('api/mt/updaterateplan', mt_api.spider_batch_update_rate_plan),
    path('api/mt/getorderlist', mt_api.spider_get_order_list),
    path('api/mt/getorderuserhistory', mt_api.spider_get_order_user_history),

    path('api/mto/gethotellist', mto_api.spider_hotel_list),
    path('api/mto/gethotelroomlist', mto_api.spider_hotel_room_list),
    path('api/mto/gethotelroomstatus', mto_api.spider_hotel_room_status),
    path('api/mto/pushprice', mto_api.spider_submit_update_price),
    path('api/mto/pushroomstatus', mto_api.spider_submit_update_inventory),
    path('api/mto/getorderlist', mto_api.spider_get_order_list),
    path('api/mto/getdirectorderlist', mto_api.spider_get_direct_order_list),

    path('api/elong/gethotellist', el_api.spider_hotel_list),
    path('api/elong/gethotelroomlist', el_api.spider_hotel_room_list),
    path('api/elong/gethotelsaleroomlist', el_api.spider_hotel_sale_room_list),
    path('api/elong/gethotelsaleroomlist2', el_api.spider_hotel_sale_room_list_2),
    path('api/elong/gethotelallroomlist', el_api.spider_hotel_all_room_list),
    path('api/elong/gethotelallsaleroomlist', el_api.spider_hotel_all_sale_room_list),
    path('api/elong/batchupdatesaleroominfo', el_api.spider_batch_update_sale_room_info),
    path('api/elong/gethotelroomstatus', el_api.spider_get_room_status),
    path('api/elong/pushprice', el_api.spider_update_price),
    path('api/elong/pushroomstatus', el_api.spider_update_room_status),
    path('api/elong/batchonoffroom', el_api.spider_batch_onoff_room),
    path('api/elong/pushsaleroomstatus', el_api.spider_update_saleroom_status),
    path('api/elong/getorderlist', el_api.spider_get_order_list),

]


